project('gits-r-us', 'cpp', 'c')

add_global_arguments(['-g3'], language : 'c')
add_global_arguments(['-g3'], language : 'cpp')

lib_includes = include_directories('lib')
thirdparty_includes = include_directories('thirdparty')

boost = dependency('boost', modules : [
	'thread', 
	'asio'
	]
)

subdir('thirdparty')
subdir('lib')

microhttpd = dependency('libmicrohttpd', version: '>= 0.9.52')

src = [
	'src/gits-r-us.cpp',
]

exe = executable(
	'gits-r-us', 
	src,
	dependencies: [
		boost,
		microhttpd
	],
	link_with: [ macaroons_lib ],
	include_directories: [ lib_includes, thirdparty_includes ],
)

test('simple test', exe)
